package sequences;

import java.util.Date;
import java.util.Random;

/**
 * An entirely random sequence generator.
 * 
 * @author John Schaeffer
 *
 */
public class RandSequence implements CharSequence {

    Random rng;
    
    /**
     * Constructs a new RandSequence seeded with the current time.
     */
    public RandSequence() {
        rng = new Random(new Date().getTime());
    }
    
    /**
     * Produces a random character.
     */
    public char nextChar() {
        return (char)('A' + rng.nextInt(26));
    }

}
